<?php
$this->breadcrumbs=array();

$this->sidebarTop = array(
    'label' => Yii::t('BackEnd', "Admin user"),
    'link' => Yii::app()->createUrl("/adminUser/index")
);

//Declare icons
$iconManager = '<img src="'.Yii::app()->request->baseUrl.'/css/admin/images/icons/18_12x12.png" class="icon" />&nbsp;';
$iconSave = '<img src="'.Yii::app()->request->baseUrl.'/css/admin/images/icons/20_12x12.png" class="icon" />&nbsp;';
$iconReset = '<img src="'.Yii::app()->request->baseUrl.'/css/admin/images/icons/reset_12x12.png" class="icon" />&nbsp;';
$iconTitle = '<img src="'.Yii::app()->request->baseUrl.'/css/admin/images/icons/create_15x15.png" class="icon" />&nbsp;';

$this->menu=array(
	array('label'=>$iconList.Yii::t('BackEnd', 'List'), 'url'=>array('index'), 'visible'=>!UserAccess::checkAccess('AdminUserAdmin')),
	array('label'=>$iconManager.Yii::t('BackEnd', 'Manage'), 'url'=>array('admin'), 'visible'=>UserAccess::checkAccess('AdminUserAdmin')),
    array('label'=>$iconSave.Yii::t('BackEnd', 'Save'), 'url'=>'javascript:void(0)', 'linkOptions'=>array('onclick'=>'document.getElementById(\'admin-user-form\').submit();return false;')),
    array('label'=>$iconReset.Yii::t('BackEnd', 'Reset'), 'url'=>'javascript:void(0)', 'linkOptions'=>array('onclick'=>'document.getElementById(\'admin-user-form\').reset();return false;')),
);

$this->slidebar=array(
	array('label'=>Yii::t('Global','Basic information'), 'name'=>'basic-info', 'rel'=>'AdminUser-basic-info'),
);

$this->title = $iconTitle.Yii::t('BackEnd', 'Create');
?>

<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>